<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>算术运算</title>
</head>
<body>
    <!-- 算术运算  + - * /  % 
            - 当+号两侧，只要有一侧的值为字符串，则会进行字符串拼接
    -->
    <script>
        let num1 = '10'
        let num2 = 3
        let jiaRes = num1 + num2 // '103'
        let jianRes = num1 - num2 // '10' - 3 =>  10 - 3 => 7 隐式类型转换
        let chengRes = num1 * num2 // 30
        let chuRes = num1 / num2 // 3.3333
        let yuRes = num1 % num2 // 1
        console.log(jiaRes, jianRes, chengRes, chuRes, yuRes)

    </script>
</body>
</html>